#include"monster.h"

monster::monster()
{

}

void monster::init(int row, int col, int type)
{
    _row=row;
    _col=col;
    _type=type;
    _isdead=false;
    _magicHurt=0;
    switch(type){
    case 1://绿史莱姆
        _Hp=50;
        _Attack=20;
        _defend=1;
        _RewardE=1;
        _RewardM=1;
        monsters.load("://images/13.png");
        break;
    case 2://红史莱姆
        _Hp=70;
        _Attack=15;
        _defend=2;
        _RewardE=2;
        _RewardM=2;
        monsters.load("://images/14.png");
        break;
    case 3://小蝙蝠
        _Hp=100;
        _Attack=20;
        _defend=5;
        _RewardE=3;
        _RewardM=3;
        monsters.load("://images/19.png");
        break;
    case 4://骷髅
        _Hp=110;
        _Attack=25;
        _defend=5;
        _RewardE=5;
        _RewardM=4;
        monsters.load("://images/15.png");
        break;
    case 5://黑史莱姆
        _Hp=200;
        _Attack=35;
        _defend=10;
        _RewardE=5;
        _RewardM=5;
        monsters.load("://images/18.png");
        break;
    case 6://骷髅士兵
        _Hp=150;
        _Attack=40;
        _defend=20;
        _RewardE=8;
        _RewardM=6;
        monsters.load("://images/31.png");
        break;
    case 7://初级法师
        _Hp=125;
        _Attack=50;
        _defend=25;
        _RewardE=10;
        _RewardM=7;
        monsters.load("://images/20.png");
        break;
    case 8://大蝙蝠
        _Hp=150;
        _Attack=65;
        _defend=30;
        _RewardE=10;
        _RewardM=8;
        monsters.load("://images/38.png");
        break;
    case 9://兽面人
        _Hp=300;
        _Attack=75;
        _defend=45;
        _RewardE=13;
        _RewardM=10;
        monsters.load("://images/23.png");
        break;
    case 10://骷髅队长
        _Hp=400;
        _Attack=90;
        _defend=50;
        _RewardE=15;
        _RewardM=12;
        monsters.load("://images/44.png");
        break;
    case 11://石头人
        _Hp=500;
        _Attack=115;
        _defend=65;
        _RewardE=15;
        _RewardM=15;
        monsters.load("://images/46.png");
        break;
    case 12://麻衣法师
        _Hp=250;
        _Attack=120;
        _defend=70;
        _RewardE=20;
        _RewardM=17;
        _magicHurt=100;
        monsters.load("://images/51.png");
        break;
    case 13://初级卫兵
        _Hp=450;
        _Attack=150;
        _defend=90;
        _RewardE=22;
        _RewardM=19;
        monsters.load("://images/37.png");
        break;
    case 14://红蝙蝠
        _Hp=550;
        _Attack=160;
        _defend=90;
        _RewardE=25;
        _RewardM=20;
        monsters.load("://images/39.png");
        break;
    case 15://高级法师
        _Hp=100;
        _Attack=200;
        _defend=110;
        _RewardE=30;
        _RewardM=25;
        monsters.load("://images/48.png");
        break;
    case 16://怪王
        _Hp=700;
        _Attack=250;
        _defend=125;
        _RewardE=32;
        _RewardM=30;
        monsters.load("://images/45.png");
        break;
    case 17://白衣武士
        _Hp=1300;
        _Attack=300;
        _defend=150;
        _RewardE=40;
        _RewardM=35;
        monsters.load("://images/50.png");
        break;
    case 18://金卫士
        _Hp=850;
        _Attack=350;
        _defend=200;
        _RewardE=45;
        _RewardM=40;
        monsters.load("://images/34.png");
        break;
    case 19://红衣法师
        _Hp=500;
        _Attack=400;
        _defend=260;
        _RewardE=47;
        _RewardM=45;
        _magicHurt=300;
        monsters.load("://images/47.png");
        break;
    case 20://兽面武士
        _Hp=900;
        _Attack=450;
        _defend=330;
        _RewardE=50;
        _RewardM=50;
        monsters.load("://images/54.png");
        break;
    case 21://冥卫兵
        _Hp=1250;
        _Attack=500;
        _defend=400;
        _RewardE=55;
        _RewardM=55;
        monsters.load("://images/55.png");
        break;
    case 22://高级卫兵
        _Hp=1500;
        _Attack=560;
        _defend=460;
        _RewardE=60;
        _RewardM=60;
        monsters.load("://images/57.png");
        break;
    case 23://双手剑士
        _Hp=1200;
        _Attack=620;
        _defend=520;
        _RewardE=65;
        _RewardM=75;
        monsters.load("://images/56.png");
        break;
    case 24://冥战士
        _Hp=2000;
        _Attack=680;
        _defend=590;
        _RewardE=70;
        _RewardM=65;
        monsters.load("://images/59.png");
        break;
    case 25://金队长
        _Hp=900;
        _Attack=750;
        _defend=650;
        _RewardE=77;
        _RewardM=70;
        monsters.load("://images/35.png");
        break;
    case 26://灵法师
        _Hp=1500;
        _Attack=830;
        _defend=730;
        _RewardE=80;
        _RewardM=70;
        monsters.load("://images/61.png");
        break;
    case 27://冥队长
        _Hp=2500;
        _Attack=900;
        _defend=850;
        _RewardE=84;
        _RewardM=75;
        monsters.load("://images/63.png");
        break;
    case 28://灵战士
        _Hp=1200;
        _Attack=980;
        _defend=900;
        _RewardE=88;
        _RewardM=75;
        monsters.load("://images/60.png");
        break;
    case 29://影子战士
        _Hp=3100;
        _Attack=1150;
        _defend=1050;
        _RewardE=92;
        _RewardM=80;
        monsters.load("://images/67.png");
        break;
    case 30://红衣魔王
        _Hp=15000;
        _Attack=1000;
        _defend=1000;
        _RewardE=100;
        _RewardM=100;
        monsters.load("://images/66.png");
        break;
    case 31://红衣魔王2
        _Hp=20000;
        _Attack=1333;
        _defend=1333;
        _RewardE=133;
        _RewardM=133;
        monsters.load("://images/66.png");
        break;
    case 32://魔王
        _Hp=30000;
        _Attack=1700;
        _defend=1500;
        _RewardE=250;
        _RewardM=220;
        monsters.load("://images/70.png");
        break;
    case 33://魔王2
        _Hp=45000;
        _Attack=2550;
        _defend=2250;
        _RewardE=375;
        _RewardM=330;
        monsters.load("://images/70.png");
        break;
    }
}



